﻿<UserControl x:Class="AnthStat.WPF.Presentation.Controls.IndividualAssessmentsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:controls="clr-namespace:AnthStat.WPF.Presentation.Controls"
             xmlns:p="clr-namespace:AnthStat.WPF.Presentation.Properties"
             xmlns:viewmodels="clr-namespace:AnthStat.WPF.Applications;assembly=AnthStat.WPF.Applications"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="500" d:DesignWidth="900">
    <UserControl.Resources>
        <viewmodels:DesignProjectViewModel x:Key="DesignViewModel" />
    </UserControl.Resources>
    <Grid d:DataContext="{StaticResource DesignViewModel}">
        
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>

        <Grid Grid.Row="0" Background="{StaticResource AccentDarkBrush}" Height="Auto">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            
            <StackPanel Orientation="Horizontal" Margin="0, 6, 0, 6">
                <StackPanel Width="20" />
                <Button Style="{StaticResource DarkButtonStyle}" Width="100" Command="{Binding AddPersonCommand}" IsEnabled="True" Background="{StaticResource AccentLightBrush}" Content="Add child" />
                <StackPanel Width="6" />
                <Button Style="{StaticResource DarkButtonStyle}" Width="100" Command="{Binding PromptRemovePersonCommand}" IsEnabled="True" Background="{StaticResource AccentLightBrush}" Content="Remove child" />
                <StackPanel Width="6" />
                <Button Style="{StaticResource DarkButtonStyle}" Width="100" Command="{Binding SaveCommand}" IsEnabled="True" Background="{StaticResource AccentLightBrush}" Content="Save" />
            </StackPanel>
            
            <StackPanel Grid.Column="1" VerticalAlignment="Center" Margin="0, 0, 10, 0" Orientation="Horizontal">
                <TextBlock Foreground="#EEF4FB" Text="{Binding ChildrenView.Count}" />
                <StackPanel Width="4" />
                <TextBlock Foreground="#EEF4FB" Text="records" />
            </StackPanel>
        </Grid>

        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="340" />
                <ColumnDefinition Width=".7*" />
            </Grid.ColumnDefinitions>

            <Grid Grid.Column="0" Width="20">
                <Grid Width="4" HorizontalAlignment="Right" VerticalAlignment="Stretch">
                    <Grid.Background>
                        <LinearGradientBrush StartPoint="1,0" EndPoint="0,0">
                            <GradientStop Offset="0" Color="#CCCCCC" />
                            <GradientStop Offset="1" Color="Transparent" />
                        </LinearGradientBrush>
                    </Grid.Background>
                </Grid>
            </Grid>

            <Grid Grid.Column="1">

                <ScrollViewer VerticalScrollBarVisibility="Auto">
                    <StackPanel>
                        <ListView d:UseSampleData="True" 
                                  VirtualizingPanel.IsVirtualizing="True"
                                  VirtualizingPanel.VirtualizationMode="Recycling"
                                  Style="{StaticResource ChildListViewStyle}" 
                                  ItemsSource="{Binding ChildrenView, IsAsync=True, FallbackValue=...}" 
                                  IsEnabled="{Binding ChildrenView.CurrentItem.MeasurementsView.CurrentItem.HasErrors, Converter={StaticResource BooleanInverter}}" />
                    </StackPanel>
                </ScrollViewer>
            </Grid>

            <Grid Grid.Column="2">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>

                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>

                <StackPanel Grid.Row="0" Margin="20, 10, 0, 10" Visibility="{Binding ChildrenView.CurrentItem, Converter={StaticResource NullToVisibilityConverter}}">
                    <TextBlock FontSize="42" Foreground="#444444" FontWeight="Light" Text="{Binding ChildrenView.CurrentItem.FullName}" />
                    <TextBlock FontSize="12" Foreground="#666666" Text="{Binding ChildrenView.CurrentItem.LastMeasurement.DateMeasurement, Converter={StaticResource DaysAgoConverter}, ConverterParameter='Last measured {0} days ago'}" />
                    <StackPanel Height="20" />

                    <Grid HorizontalAlignment="Left">
                        <Grid.Resources>
                            <Style TargetType="ToggleButton" x:Key="LeftHalfToggleButtonStyle">
                                <Setter Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate TargetType="ToggleButton">
                                            <Border 
                                                x:Name="PART_Border"
                                                BorderBrush="{StaticResource AccentBrush}"
                                                CornerRadius="8, 0, 0, 8"
                                                Background="Transparent"
                                                BorderThickness="2">
                                                <TextBlock x:Name="PART_Text" HorizontalAlignment="Center" VerticalAlignment="Center" Text="{TemplateBinding Content}" />
                                            </Border>
                                            <ControlTemplate.Triggers>
                                                <Trigger Property="IsChecked" Value="True">
                                                    <Setter TargetName="PART_Border" Property="Background" Value="{StaticResource AccentLightBrush}"></Setter>
                                                    <Setter TargetName="PART_Text" Property="Foreground" Value="White"></Setter>
                                                </Trigger>
                                                <MultiTrigger>
                                                    <MultiTrigger.Conditions>
                                                        <Condition Property="IsChecked" Value="True" />
                                                        <Condition Property="IsMouseOver" Value="True" />
                                                    </MultiTrigger.Conditions>
                                                    <Setter TargetName="PART_Border" Property="Background" Value="{StaticResource AccentVeryLightBrush}"></Setter>
                                                </MultiTrigger>
                                                <MultiTrigger>
                                                    <MultiTrigger.Conditions>
                                                        <Condition Property="IsChecked" Value="False" />
                                                        <Condition Property="IsMouseOver" Value="True" />
                                                    </MultiTrigger.Conditions>
                                                    <Setter TargetName="PART_Border" Property="Background" Value="#F3F8FC"></Setter>
                                                </MultiTrigger>
                                            </ControlTemplate.Triggers>
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>

                            <Style TargetType="ToggleButton" x:Key="RightHalfToggleButtonStyle">
                                <Setter Property="Template">
                                    <Setter.Value>
                                        <ControlTemplate TargetType="ToggleButton">
                                            <Border 
                                                x:Name="PART_Border"
                                                BorderBrush="{StaticResource AccentBrush}"
                                                CornerRadius="0, 8, 8, 0"
                                                Background="Transparent"
                                                BorderThickness="2">
                                                <TextBlock x:Name="PART_Text" HorizontalAlignment="Center" VerticalAlignment="Center" Text="{TemplateBinding Content}" />
                                            </Border>
                                            <ControlTemplate.Triggers>
                                                <Trigger Property="IsChecked" Value="True">
                                                    <Setter TargetName="PART_Border" Property="Background" Value="{StaticResource AccentLightBrush}"></Setter>
                                                    <Setter TargetName="PART_Text" Property="Foreground" Value="White"></Setter>
                                                </Trigger>
                                                <MultiTrigger>
                                                    <MultiTrigger.Conditions>
                                                        <Condition Property="IsChecked" Value="True" />
                                                        <Condition Property="IsMouseOver" Value="True" />
                                                    </MultiTrigger.Conditions>
                                                    <Setter TargetName="PART_Border" Property="Background" Value="{StaticResource AccentVeryLightBrush}"></Setter>
                                                </MultiTrigger>
                                                <MultiTrigger>
                                                    <MultiTrigger.Conditions>
                                                        <Condition Property="IsChecked" Value="False" />
                                                        <Condition Property="IsMouseOver" Value="True" />
                                                    </MultiTrigger.Conditions>
                                                    <Setter TargetName="PART_Border" Property="Background" Value="#F3F8FC"></Setter>
                                                </MultiTrigger>
                                            </ControlTemplate.Triggers>
                                        </ControlTemplate>
                                    </Setter.Value>
                                </Setter>
                            </Style>
                        </Grid.Resources>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition />
                            <ColumnDefinition />
                        </Grid.ColumnDefinitions>

                        <ToggleButton 
                            x:Name="StatisticsToggleButton" 
                            Grid.Column="0" 
                            Style="{StaticResource LeftHalfToggleButtonStyle}"
                            Width="180" 
                            Height="24"
                            IsChecked="True">Measurements</ToggleButton>

                        <ToggleButton 
                            x:Name="DemographicsToggleButton" 
                            Grid.Column="1" 
                            Style="{StaticResource RightHalfToggleButtonStyle}" 
                            Width="180" 
                            Height="24"
                            IsChecked="{Binding ElementName=StatisticsToggleButton, Path=IsChecked, Converter={StaticResource BooleanInverter}}">Demographics</ToggleButton>

                    </Grid>

                    <StackPanel Height="20" />
                    <DockPanel Height="1" Background="#CCCCCC" />


                </StackPanel>


                <ScrollViewer Margin="20, 0, 0, 0" 
                                  Grid.Row="1" 
                                  Visibility="{Binding ChildrenView.CurrentItem, Converter={StaticResource NullToVisibilityConverter}}"
                                  VerticalScrollBarVisibility="Visible" 
                                  HorizontalScrollBarVisibility="Disabled"  
                                  HorizontalAlignment="Stretch"
                                  Width="Auto" >
                    <ItemsControl DataContext="{Binding ChildrenView.CurrentItem}">
                        <ItemsControl.ItemsPanel>
                            <ItemsPanelTemplate>
                                <StackPanel Orientation="Vertical" />
                            </ItemsPanelTemplate>
                        </ItemsControl.ItemsPanel>

                        <ItemsControl.ItemContainerStyle>
                            <Style TargetType="Grid">
                                <Setter Property="Height" Value="Auto"></Setter>
                                <Setter Property="Margin" Value="0,0,10,20"></Setter>
                            </Style>
                        </ItemsControl.ItemContainerStyle>
                        <!--<WrapPanel HorizontalAlignment="Left" MinWidth="320" Orientation="Horizontal" Margin="20, 0, 0, 0">-->

                        <Grid x:Name="GridDemographics" 
                              Visibility="{Binding ElementName=DemographicsToggleButton, Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}, Mode=TwoWay, FallbackValue=Collapsed}">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>

                            <TextBlock Grid.Row="0" FontSize="24" Foreground="{StaticResource AccentTextHeaderBrush}" Text="Demographics" />

                            <Grid Grid.Row="1">
                                <Grid.Resources>
                                    <Style TargetType="TextBox">
                                        <Setter Property="Padding" Value="2" />
                                        <Setter Property="FontSize" Value="12" />
                                        <Setter Property="Margin" Value="0, 2, 0, 2" />
                                        <Setter Property="VerticalAlignment" Value="Center" />
                                    </Style>
                                </Grid.Resources>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto" />
                                    <RowDefinition Height="Auto" />
                                    <RowDefinition Height="Auto" />
                                    <RowDefinition Height="Auto" />
                                    <RowDefinition Height="Auto" />
                                    <RowDefinition Height="Auto" />
                                    <RowDefinition Height="Auto" />
                                    <RowDefinition Height="Auto" />
                                    <RowDefinition Height="Auto" />
                                    <RowDefinition Height="Auto" />
                                </Grid.RowDefinitions>

                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition Width="50" />
                                    <ColumnDefinition Width="Auto" />
                                </Grid.ColumnDefinitions>

                                <TextBlock Grid.Row="0" Grid.Column="0" Style="{StaticResource DemographicsTextBlockStyle}"
                                           Text="First name" />

                                <TextBlock Grid.Row="1" Grid.Column="0" Style="{StaticResource DemographicsTextBlockStyle}"
                                           Text="Last name" />

                                <TextBlock Grid.Row="2" Grid.Column="0" Style="{StaticResource DemographicsTextBlockStyle}"
                                           Text="Sex" />

                                <TextBlock Grid.Row="3" Grid.Column="0" Style="{StaticResource DemographicsTextBlockStyle}"
                                           Text="Date of birth" />

                                <!--<TextBlock Grid.Row="4" Grid.Column="0" Style="{StaticResource DemographicsTextBlockStyle}"
                                           Text="Race" />-->

                                <TextBlock Grid.Row="5" Grid.Column="0" Style="{StaticResource DemographicsTextBlockStyle}"
                                           Text="Address" />

                                <TextBlock Grid.Row="6" Grid.Column="0" Style="{StaticResource DemographicsTextBlockStyle}"
                                           Text="City" />

                                <TextBlock Grid.Row="7" Grid.Column="0" Style="{StaticResource DemographicsTextBlockStyle}"
                                           Text="State/province/district" />

                                <TextBlock Grid.Row="8" Grid.Column="0" Style="{StaticResource DemographicsTextBlockStyle}"
                                           Text="Zip code/postal code" />

                                <TextBlock Grid.Row="9" Grid.Column="0" Style="{StaticResource DemographicsTextBlockStyle}"
                                           Text="Country" />


                                <TextBox HorizontalAlignment="Left" Grid.Row="0" Grid.Column="2" Width="200"
                                         Text="{Binding FirstName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True, NotifyOnValidationError=True}"/>

                                <TextBox HorizontalAlignment="Left" Grid.Row="1" Grid.Column="2" Width="200"
                                         Text="{Binding LastName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True, NotifyOnValidationError=True}"/>

                                <ComboBox 
                                    Grid.Row="2" 
                                    Grid.Column="2" 
                                    ItemsSource="{StaticResource SexArray}" 
                                    DisplayMemberPath="DisplayString" 
                                    SelectedValuePath="ValueString" 
                                    VerticalAlignment="Center"
                                    HorizontalAlignment="Left"
                                    Width="200"
                                    SelectedValue="{Binding Sex, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}" />
                                          
                                <!--<StackPanel HorizontalAlignment="Left" Grid.Row="2" Grid.Column="2" Orientation="Horizontal" VerticalAlignment="Center" >
                                    <RadioButton GroupName="GROUP_1" Content="Male" IsChecked="{Binding Sex, Mode=TwoWay, Converter={StaticResource MaleToCheckedConverter}}" />
                                    <StackPanel Width="10" />
                                    <RadioButton GroupName="GROUP_1" Content="Female" IsChecked="{Binding Sex, Mode=TwoWay, Converter={StaticResource FemaleToCheckedConverter}}" />
                                </StackPanel>-->

                                <StackPanel Orientation="Horizontal" Grid.Row="3" Grid.Column="2" VerticalAlignment="Center">
                                    <DatePicker HorizontalAlignment="Left" FontSize="12" VerticalAlignment="Center"
                                            SelectedDate="{Binding DateBirth, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True, NotifyOnValidationError=True}"/>

                                    <StackPanel Width="10" />

                                    <CheckBox x:Name="checkboxIsDOBEstimated" VerticalAlignment="Center" IsChecked="{Binding IsDateBirthEstimated, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Content="Estimated date" />
                                </StackPanel>


                                <!--<ComboBox HorizontalAlignment="Left" Grid.Row="4" Grid.Column="2" FontSize="12" VerticalAlignment="Center" Width="200" />-->

                                <TextBox HorizontalAlignment="Left" Grid.Row="5" Grid.Column="2" Width="300"
                                         Text="{Binding StreetAddress, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True, NotifyOnValidationError=True}"/>

                                <TextBox HorizontalAlignment="Left" Grid.Row="6" Grid.Column="2" Width="200"
                                         Text="{Binding City, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True, NotifyOnValidationError=True}"/>

                                <TextBox HorizontalAlignment="Left" Grid.Row="7" Grid.Column="2" Width="100"
                                         Text="{Binding Adm1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True, NotifyOnValidationError=True}"/>

                                <!--<ComboBox HorizontalAlignment="Left" Grid.Row="7" Grid.Column="2" FontSize="12" VerticalAlignment="Center" Width="200" />-->

                                <TextBox HorizontalAlignment="Left" Grid.Row="8" Grid.Column="2" Width="100" 
                                         Text="{Binding PostalCode, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True, NotifyOnValidationError=True}"/>

                                <TextBox HorizontalAlignment="Left" Grid.Row="9" Grid.Column="2" Width="100" 
                                         Text="{Binding Country, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True, NotifyOnValidationError=True}"/>
                            </Grid>


                        </Grid>

                        <Grid Visibility="{Binding ElementName=StatisticsToggleButton, Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}, Mode=TwoWay}">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto" />
                                <!--<RowDefinition Height="*" />-->
                            </Grid.RowDefinitions>

                            <!--<Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="30" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>-->

                            <StackPanel Grid.Row="0" Grid.Column="0" Margin="0, 0, 0, 30">

                                <Grid>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto" />
                                        <ColumnDefinition Width="*" />
                                    </Grid.ColumnDefinitions>

                                    <TextBlock FontSize="24" Foreground="{StaticResource AccentTextHeaderBrush}" Text="{Binding MeasurementsView.Count, Converter={StaticResource CollectionCountStringFormatter}, ConverterParameter='Measurements ({0}) '}" />

                                    <StackPanel Grid.Column="1" Margin="0, 0, 0, 0" HorizontalAlignment="Right" VerticalAlignment="Center" Orientation="Horizontal">

                                        <Button Style="{StaticResource DarkButtonStyle}" Width="100" Margin="0, 0, 10, 0" Command="{Binding AddMeasurementCommand}" IsEnabled="True" Background="{StaticResource AccentLightBrush}" Content="Add" />

                                        <Button Style="{StaticResource DarkButtonStyle}" Width="100" Margin="0, 0, 10, 0" Command="{Binding PromptRemoveMeasurementCommand}" IsEnabled="True" Background="{StaticResource AccentLightBrush}" Content="Remove" />

                                        <Button Style="{StaticResource DarkButtonStyle}" Width="100" Command="{Binding MeasurementsView.CurrentItem.ToggleShowIndividualChartCommand}" Background="{StaticResource AccentLightBrush}"  Content="Growth charts" 
                               
                                 />

                                    </StackPanel>
                                </Grid>

                                <StackPanel Height="5" />

                                <ListView Style="{StaticResource MeasurementListViewStyle}" 
                                          ItemsSource="{Binding MeasurementsView}" 
                                          IsEnabled="{Binding MeasurementsView.CurrentItem.HasErrors, Converter={StaticResource BooleanInverter}}"
                                          IsSynchronizedWithCurrentItem="True" Height="156" />
                            </StackPanel>
                        </Grid>

                        <Grid 
                            IsEnabled="{Binding MeasurementsView.CurrentItem, Converter={StaticResource NullToDisabledConverter}}"
                            Visibility="{Binding ElementName=StatisticsToggleButton, Path=IsChecked, Converter={StaticResource BooleanToVisibilityConverter}, Mode=TwoWay}">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="30" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>

                            <Grid.RowDefinitions>
                                <RowDefinition Height="*" />
                                <RowDefinition Height="Auto" />
                            </Grid.RowDefinitions>

                            <controls:MeasurementInputs Grid.Column="0" DataContext="{Binding MeasurementsView.CurrentItem}"
                                                        AllowsDirectAgeInput="{Binding ElementName=checkboxIsDOBEstimated, Path=IsChecked}"
                                Visibility="{Binding Source={x:Static p:Settings.Default}, Path=MeasurementSystem, Mode=OneWay, Converter={StaticResource MetricSystemToVisibilityConverter}}"/>

                            <controls:MeasurementInputs Style="{StaticResource ImperialMeasurementInputsStyle}" Grid.Column="0" DataContext="{Binding MeasurementsView.CurrentItem}"
                                                        AllowsDirectAgeInput="{Binding ElementName=checkboxIsDOBEstimated, Path=IsChecked}"
                                Visibility="{Binding Source={x:Static p:Settings.Default}, Path=MeasurementSystem, Mode=OneWay, Converter={StaticResource ImperialSystemToVisibilityConverter}}"/>

                            <controls:IndicatorOutputsCDC Grid.Column="2" Margin="0" DataContext="{Binding MeasurementsView.CurrentItem}" Visibility="{Binding Source={x:Static p:Settings.Default}, Path=PrimaryGrowthReference, Mode=OneWay, Converter={StaticResource GrowthReferenceToVisibilityConverter}, ConverterParameter='CDC'}" />
                            <controls:IndicatorOutputsWHO Grid.Column="2" Margin="0" DataContext="{Binding MeasurementsView.CurrentItem}" Visibility="{Binding Source={x:Static p:Settings.Default}, Path=PrimaryGrowthReference, Mode=OneWay, Converter={StaticResource GrowthReferenceToVisibilityConverter}, ConverterParameter='WHO'}" />

                            <StackPanel Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" Margin="0, 20, 0, 0">
                                <TextBlock FontSize="14">Notes</TextBlock>
                                <TextBox Text="{Binding MeasurementsView.CurrentItem.Notes, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" AcceptsReturn="True" Height="48" />
                            </StackPanel>
                        </Grid>
                    </ItemsControl>
                </ScrollViewer>

                <Grid Grid.Row="0" Width="4" Grid.RowSpan="2" HorizontalAlignment="Left" VerticalAlignment="Stretch">
                    <Grid.Background>
                        <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
                            <GradientStop Offset="0" Color="#CCCCCC" />
                            <GradientStop Offset="1" Color="Transparent" />
                        </LinearGradientBrush>
                    </Grid.Background>
                </Grid>
            </Grid>
        </Grid>

        <Grid Grid.Row="1" Height="3" HorizontalAlignment="Stretch" VerticalAlignment="Top">
            <Grid.Background>
                <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                    <GradientStop Offset="0" Color="#CCCCCC" />
                    <GradientStop Offset="1" Color="Transparent" />
                </LinearGradientBrush>
            </Grid.Background>
        </Grid>
    </Grid>
</UserControl>
